package com.ihrm.system.dao;

import com.ihrm.domain.system.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author 13932105637
 * @version l.0
 * @date 2021/7/14 23:21
 **/
public interface RoleDao extends JpaRepository<Role,String>, JpaSpecificationExecutor<Role> {
    /**
     * 根据公司查询用户
     * @author pmz
     * @date 2021/8/12 23:02
     * @param companyId 公司id
     * @return java.util.List<com.ihrm.domain.system.Role>
     **/
    List<Role> findByCompanyId(String companyId);
}
